Socket
Socket
Sign inDemoInstall

es6-object-assign

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-object-assign

ECMAScript 2015 (ES6) Object.assign polyfill and ponyfill


Version published
Maintainers
1
Created

What is es6-object-assign?

The es6-object-assign package is a polyfill for the Object.assign() method, which is part of the ECMAScript 2015 (ES6) standard. This method is used to copy the values of all enumerable own properties from one or more source objects to a target object, returning the target object. This package ensures compatibility for environments where Object.assign() is not natively supported.

What are es6-object-assign's main functionalities?

Polyfill for Object.assign

This feature allows the user to merge multiple objects into a single object, combining their properties. It is particularly useful for merging configurations or settings objects in JavaScript applications.

var objectAssign = require('es6-object-assign').assign;
var obj1 = { a: 1 };
var obj2 = { b: 2 };
var result = objectAssign(obj1, obj2);
console.log(result); // Output: { a: 1, b: 2 }

Other packages similar to es6-object-assign

Keywords

FAQs

Package last updated on 18 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc